package com.cqupt.mislab.erpn.commons.utils;

/**
 * @program: com.cqupt.mislab.erpn.commons.utils
 * @description:
 * @author: keji0
 * @date: 2020/8/18 15:40
 */

public class CookieUtils {
//    public static String getCookie(HttpServletRequest request, String cookieName) {
//
//        Session.Cookie[] cookies = request.getCookies();
//        if (cookies != null) {
//            for (Cookie cookie : cookies) {
//                if (cookie.getName().equals(cookieName)) {
//                    return cookie.getValue();
//                }
//            }
//        }
//        return null;
//    }
//
//    public static void writeCookie(HttpServletResponse response, String cookieName, String value) {
//        Cookie cookie = new Cookie(cookieName, value);
//        cookie.setPath("/");
//        cookie.setMaxAge(5 * 60);
//        response.addCookie(cookie);
//    }

}
